// Validation Scripts
		
function PressReleaseDateValidation(){
	if($("#edit-txt-fromdate-datepicker-popup-0").val()==''){
	    $('#errplace').text('Please Enter the date');
		 $('#result_block').text('');
	    return false;
	}
	var str2 = $("#edit-txt-fromdate-datepicker-popup-0").val(); 
    if (isDate(str2)) {} 
    else { 
        $('#errplace').html('Sorry.. Invalid Date format.. <br />The date should be in the format of DD(1 to 31)-MM(1 to 12)-YYYY'); 
		 $('#result_block').text('');
        return false; 
    }
    var d = new Date(); 
    var curr_day = d.getDate(); 
    var curr_month = d.getMonth(); 
    var curr_year = d.getFullYear(); 
    var str2 = $("#edit-txt-fromdate-datepicker-popup-0").val();
     
    var v_dt = parseInt(str2.substring(0, 2), 10); 
    var v_mon = parseInt(str2.substring(3, 5), 10); 
    var v_yr = parseInt(str2.substring(6, 10), 10);
    
    var dt1 = new Date(curr_year, curr_month, curr_day); 
    var dt2 = new Date(v_yr, v_mon - 1, v_dt);
    
    if(dt1<dt2){
        $('#errplace').text('The date should not be greater then today\'s date');
        $('#result_block').text('');
        return false;
    }
}